/**
 * 
 */
package com.daisuxia.web.util;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.log4j.Logger;

/**
 * <li>描述:配合文件加载类</li><br>
 * <li>This is about <code>ConfigLoader</code></li>
 *
 * @author hjy273@gmail.com
 * @version 1.0
 * @date 2017年5月12日 上午10:41:21
 */
public class ConfigLoader {

	private PropertiesConfiguration configurations;
	private static Logger logger = Logger.getLogger(ConfigLoader.class);

	private final static ConfigLoader configLoader = new ConfigLoader();

	public static ConfigLoader getInstance() {
		return configLoader;
	}

	private ConfigLoader() {
		try {
			configurations = new PropertiesConfiguration("qiniu-server.properties");
		} catch (ConfigurationException e) {
			logger.error("", e);
		}
	}

	public PropertiesConfiguration getConfigurations() {
		return configurations;
	}

	public void setConfigurations(PropertiesConfiguration configurations) {
		this.configurations = configurations;
	}

}
